package 学生管理系统;

//老师类  继承自人类
public class Teacher extends Person {
    //空参 全参
    public Teacher() {
    }

    public Teacher(int id, String name, int age, String gender) {
        super(id, name, age, gender);
    }

    //重写父类抽象方法
    @Override
    public String work() {
        return "老师的任务是教书育人";
    }

    @Override
    public String show() {
        return super.show() + "\t" + work();
    }
}
